﻿<%@ Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Head" ContentPlaceHolderID="HeadContent" runat="server">
	<% Html.RenderPartial("BasicHeadUserControl"); %>
	<meta name="google-site-verification" content="<%= FrasesSimpsonsMvc.Models.Settings.GoogleSiteVerificationCode %>" />
</asp:Content>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">Frases de los Simpsons latino - Los matados</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="server">
	<div class="row-responsive well top-space home-title">
		<a href="<%= Url.Action("Index", "Home") %>"><img src="<%= VirtualPathUtility.ToAbsolute("~/Content/Images/matados.png") %>" alt="Los Matados - Frases de los Simpsons" /></a>
		<div class="visible-desktop fb-like span12 fb-like-fix" data-href="http://www.losmatados.com/" data-show-faces="false"></div>
		<form class="form-inline top-space" method="get" action="<%= Url.Action("Search", "Home") %>">
			<div class="input-append">
				<input type="text" class="input search-query" name="q" id="searchQuery" placeholder="busca tus frases favoritas…"><button type="submit" class="btn"><i class="icon-search"></i> Buscar</button>
			</div>
			<a href="<%= Url.Action("Add", "Frase") %>" class="hidden-phone btn"><i class="icon-plus"></i> Agregá una frase</a>
			<a href="<%= Url.Action("Last", "Frase") %>" class="hidden-phone btn"><i class="icon-fire"></i> Últimas frases</a>
		</form>
		<%foreach (var temporada in ViewData["Temporadas"] as IEnumerable<FrasesSimpsonsMvc.Models.Temporadas>) { %>
			<span class="label label-success tall"><a class="label-link popover-temporada" href="<%= Url.Action("Detail", "Temporada", new { Id = temporada.Id })%>" data-content="<%= temporada.Descripcion %>" data-original-title="Temporada <%= temporada.Numero %>"><%= temporada.Numero %></a></span>
		<% } %>
		<br />
		<br />
		<% foreach (var personaje in ViewData["TopPersonajes"] as IEnumerable<FrasesSimpsonsMvc.Models.Personajes>) { %>
			<span class="label label-info tall"><a class="label-link" href="<%= Url.Action( "Detail", "Personaje", new { Id = personaje.Id })%>"><%= personaje.Nombre %></a></span>
		<% } %>
	</div>

	<div class="visible-desktop row-responsive">
		<div class="ads-upper-main">
			<script type="text/javascript">
			<!--
				google_ad_client = "ca-pub-3817233705926458";
				google_ad_slot = "8498965180";
				google_ad_width = 728;
				google_ad_height = 90;
			//-->
			</script>
			<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
		</div>
	</div>

	<div class="row-responsive top-space">
	<% Html.RenderPartial("ListaFrasesUserControl", Model as IEnumerable<FrasesSimpsonsMvc.Models.Frases>); %>
	</div>

	<script type="text/javascript">
	<!--
		$(document).ready(function () {
		    $(".popover-temporada").popover({ placement: 'bottom' });
		});
	//-->
	</script>

</asp:Content>
